<?php

class QrcodeApp extends MallbaseApp {

    function index() {
        import('phpqrcode');
        $value = $_GET['url'];
        $errorCorrectionLevel = "L";
        $matrixPointSize = "4";
        QRcode::png($value, false, $errorCorrectionLevel, $matrixPointSize);
        exit;
    }
    function download() {
        if($_GET['invite_code']){
            $code = $_GET['invite_code'];
            $this->assign('code',$code);
        }
        $this->display('download.html');
    }

    function recruit(){
        $this->display('recruit.html');
    }

    //pc端主页
    function pc(){
        $this->display('pc.html');
    }
}

?>
